<?php
function open_connection()
{
$host = "localhost";
$username = "root";// untuk upload "i6034818";
$password = "";//"i6034818";
$databasename ="latihan"; //"i6034818";
$link = mysql_connect($host,$username,$password) or die ("Database tidak terkoneksi");
mysql_select_db($databasename,$link);
return $link;
}
?>